package com.bsth.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.bsth.entity.Line;
import com.bsth.entity.LineInformation;

/**
 * 
 * @Interface: LineInformationRepository(线路标准信息Repository数据持久层接口)
 * 
 * @Extends : BaseRepository
 * 
 * @Description: TODO(路段Repository数据持久层接口)
 * 
 * @Author bsth@lq
 * 
 * @Date 2016年05月03日 上午9:21:17
 *
 * @Version ﻿公交调度系统BS版 0.1
 * 
 */

@Repository
public interface LineInformationRepository extends BaseRepository<LineInformation, Integer> {

	@Query("select i from LineInformation i where i.line.lineCode in ?1")
	List<LineInformation> findByLine(List<String> lineCodes);
	
	List<LineInformation> findByLine(Line line);
}
